package com.vrv.netmgr.service;

import java.io.Serializable;
import java.util.List;

import com.vrv.framework.service.EntityService;
import com.vrv.netmgr.entity.Classes;
import com.vrv.netmgr.entity.PermissionGroup;
import com.vrv.netmgr.entity.User;
import com.vrv.netmgr.vo.UserSearchCondition;

/**
 * User service接口
 *
 * @author 曹保利
 * @version 1.0
 */
public interface UserService extends EntityService<User> {
    /**
     * 用户登录
     *
     * @param userSearchCondition
     * @return
     */
    User getUserByLoginId(UserSearchCondition userSearchCondition);

    /**
     * 根据用户id数组来获取所分配的权限组
     *
     * @param ids
     * @return
     */
    List<PermissionGroup> getPermissionGroupByUser(User user);
    /**
     * 根据用户id数组来获取所分配区域
     *
     * @param ids
     * @return
     */
    List<Classes> getClassesByUser(User user);
}
